package com.jian.common;

public class ResultUtils {
    public static BaseResponse Success() {
        return new BaseResponse(0, "success", null);
    }

    public static BaseResponse Success(Object data) {
        return new BaseResponse(0, data, "success", null);
    }

    public static BaseResponse Error(ErrorCode errorCode, String description) {
        return new BaseResponse(errorCode, description);
    }

    public static BaseResponse Error(ErrorCode errorCode) {
        return new BaseResponse(errorCode, null);
    }
}
